using System.Linq;
using Raven.Client;

namespace DNT.RavenQA.Web.Infrastructure.QueryModel
{
    public interface IParametrizedQuery<out T, in TParameter>
    {
        IQueryable<T> ExecuteWithStats(IDocumentSession session, TParameter parameter, out RavenQueryStatistics stats);
        IQueryable<T> Execute(IDocumentSession session, TParameter parameter);
    }
}